package com.shop.dao;

import com.shop.entity.Comment;
import com.shop.entity.CommentDetailVO;
import com.shop.exception.AddCommentErrorException;
import com.shop.exception.DeleteCommentErrorException;
import com.shop.exception.getCommentErrorException;

import java.util.List;

public interface CommentDao {

    //�������й��ڸ���Ʒ����id������
    List<CommentDetailVO> queryAllCommentBy_GDID(int gd_id,int pageNum,int pageSize) throws getCommentErrorException;

    //ɾ������
    int deleteCommentById(int c_id) throws DeleteCommentErrorException;

    //�������
    int addComment(Comment comment) throws AddCommentErrorException;

}
